package com.dys.hejiayuncommunity.system.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.dys.hejiayuncommunity.common.core.domain.BaseEntity;

import java.io.Serial;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author: 疾风
 * @ClassName: SysDept
 * @Description: 部门实体类
 * @CreateDate: 2024/12/06
 * @Version: v1.0.0
 */
public class SysDept extends BaseEntity {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 部门ID
     */
    @TableId
    private Long deptId;

    /**
     * 部门名称
     */
    private String deptName;

    /**
     * 父部门ID
     */
    private Long parentId;

    /**
     * 父部门名称
     */
    private String parentName;

    /**
     * 子部门列表
     */
    private List<SysDept> children = new ArrayList<SysDept>();

    /**
     * 租级列表
     */
    private String ancestors;

    /**
     * 显示顺序
     */
    private Integer orderNum;

    /**
     * 部门负责人
     */
    private String leader;

    /**
     * 部门联系电话
     */
    private String phone;

    /**
     * 部门邮箱
     */
    private String email;

    /**
     * 部门状态(0:正常,1:停用)
     */
    private String status;

    /**
     * 删除标识(0:存在,1:删除)
     */
    private String delFlag;

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public List<SysDept> getChildren() {
        return children;
    }

    public void setChildren(List<SysDept> children) {
        this.children = children;
    }

    public String getAncestors() {
        return ancestors;
    }

    public void setAncestors(String ancestors) {
        this.ancestors = ancestors;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public String getLeader() {
        return leader;
    }

    public void setLeader(String leader) {
        this.leader = leader;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return "SysDept{" +
                "deptId=" + deptId +
                ", deptName='" + deptName + '\'' +
                ", parentId=" + parentId +
                ", parentName='" + parentName + '\'' +
                ", children=" + children +
                ", ancestors='" + ancestors + '\'' +
                ", orderNum=" + orderNum +
                ", leader='" + leader + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", status=" + status +
                ", delFlag='" + delFlag + '\'' +
                '}';
    }
}
